import { http } from "@/utils/http";

/** 账户列表 */
export const itemList = (data?: object) => {
  return http.request<any>("post", "api/auth/admin/index", { data });
};
/** 账户添加 编辑 */
export const addItem = (data?: object) => {
  return http.request<any>("post","api/auth/admin/add", { data });
};

/** 账户删除 */
export const delItem = (data?: object) => {
  return http.request<any>("post","api/auth/admin/del", { data });
};

// 图片上传接口
export const reqUpload = (data?: object) => {
  return http.request<any>("post", "/api/common/upload", { data });
};